/*     */ package eos.moe.dragoncore;
/*     */ 
/*     */ import net.minecraft.client.Minecraft;
/*     */ import net.minecraft.launchwrapper.Launch;
/*     */ import net.minecraft.util.text.ITextComponent;
/*     */ import net.minecraft.util.text.TextComponentString;
/*     */ import net.minecraft.util.text.TextFormatting;
/*     */ import org.apache.logging.log4j.LogManager;
/*     */ import org.apache.logging.log4j.Logger;
/*     */ 
/*     */ public class ln
/*     */ {
/*  13 */   private static final String t = TextFormatting.AQUA + "[DEBUG] " + TextFormatting.RESET;
/*  14 */   private static final String d = TextFormatting.GOLD + "[TRACE] " + TextFormatting.RESET;
/*     */   
/*     */   public Logger z;
/*     */   public static boolean i = false;
/*     */   private boolean w = false;
/*  19 */   private eos/moe/dragoncore/ij q = eos/moe/dragoncore/ij.w;
/*     */ 
/*     */ 
/*     */   
/*     */   private boolean g = false;
/*     */ 
/*     */ 
/*     */ 
/*     */   
/*     */   public ln(String str) {
/*  29 */     this.z = LogManager.getLogger(str);
/*     */     
/*  31 */     if (((Boolean)Launch.blackboard.get("fml.deobfuscatedEnvironment")).booleanValue()) {
/*  32 */       i = true;
/*  33 */       if (this.z.getName().equals("dragoncore"));
/*     */     } 
/*     */   }
/*     */ 
/*     */ 
/*     */   
/*     */   public void d(String str) {
/*  40 */     s(str, new Object[0]);
/*     */   }
/*     */   
/*     */   public void c(String str) {
/*  44 */     (Minecraft.func_71410_x()).field_71439_g.func_145747_a((ITextComponent)new TextComponentString(str));
/*     */   }
/*     */   
/*     */   public void s(String str, Object... arrayOfObject) {
/*  48 */     this.z.info(str, arrayOfObject);
/*     */   }
/*     */   
/*     */   public void s(String str) {
/*  52 */     y(str, new Object[0]);
/*     */   }
/*     */   
/*     */   public void y(String str, Object... arrayOfObject) {
/*  56 */     this.z.warn(str, arrayOfObject);
/*     */   }
/*     */   
/*     */   public void y(String str) {
/*  60 */     t(str, new Object[0]);
/*     */   }
/*     */   
/*     */   public void t(String str, Object... arrayOfObject) {
/*  64 */     this.z.error(str, arrayOfObject);
/*     */   }
/*     */   
/*     */   public void v(Throwable throwable) {
/*  68 */     v("", throwable);
/*     */   }
/*     */   
/*     */   public void v(String str, Throwable throwable) {
/*  72 */     this.z.error(str, throwable);
/*     */   }
/*     */   
/*     */   public void t(String str) {
/*  76 */     h(str, new Object[0]);
/*     */   }
/*     */   
/*     */   public void h(String str, Object... arrayOfObject) {
/*  80 */     this.z.fatal(str, arrayOfObject);
/*     */   }
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */   
/*     */   public void h(String str) {
/*  88 */     z(str, new Object[0]);
/*     */   }
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */   
/*     */   public void z(String str, Object... arrayOfObject) {
/*  96 */     if (this.w && (this.q == eos/moe/dragoncore/ij.w || this.q == eos/moe/dragoncore/ij.q)) {
/*  97 */       if (this.g) {
/*  98 */         this.z.info(t + str, arrayOfObject);
/*     */       } else {
/* 100 */         this.z.debug(str, arrayOfObject);
/*     */       } 
/*     */     }
/*     */   }
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */   
/*     */   public void z(String str) {
/* 110 */     v(str, new Object[0]);
/*     */   }
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */   
/*     */   public void v(String str, Object... arrayOfObject) {
/* 118 */     if (this.w && this.q == eos/moe/dragoncore/ij.q) {
/* 119 */       if (this.g) {
/* 120 */         this.z.info(d + str, arrayOfObject);
/*     */       } else {
/* 122 */         this.z.debug(str, arrayOfObject);
/*     */       } 
/*     */     }
/*     */   }
/*     */ 
/*     */ 
/*     */ 
/*     */   
/*     */   public void v(String str) {
/* 131 */     if (!i) {
/*     */       return;
/*     */     }
/*     */     
/* 135 */     s(str);
/* 136 */     s("This message appears only in dev enviroment.");
/*     */   }
/*     */ 
/*     */ 
/*     */ 
/*     */   
/*     */   public void z(boolean bool) {
/* 143 */     this.g = bool;
/*     */   }
/*     */ 
/*     */ 
/*     */ 
/*     */   
/*     */   public boolean h() {
/* 150 */     return this.g;
/*     */   }
/*     */ 
/*     */ 
/*     */ 
/*     */   
/*     */   public boolean z() {
/* 157 */     return this.w;
/*     */   }
/*     */ 
/*     */ 
/*     */ 
/*     */   
/*     */   public void v(boolean bool) {
/* 164 */     this.w = bool;
/*     */   }
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */   
/*     */   public void v(eos/moe/dragoncore/ij eos/moe/dragoncore/ij1) {
/* 174 */     this.q = eos/moe/dragoncore/ij1;
/*     */   }
/*     */ 
/*     */ 
/*     */ 
/*     */   
/*     */   public boolean v() {
/* 181 */     return i;
/*     */   }
/*     */   
/*     */   public enum eos/moe/dragoncore/ij {
/* 185 */     w, q;
/*     */   }
/*     */ }


/* Location:              D:\fanbian\[D][龙之核心]DragonCore-2.6.0.3.jar!\eos\moe\dragoncore\ln.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */